import 'package:base_router_helper/base_router_helper.dart';
import 'package:fluro/src/fluro_router.dart';
import 'package:fluro/fluro.dart';
import 'package:manager_page/meeting_page.dart';
import 'package:manager_page/page_body.dart';
import 'package:manager_page/progress_page.dart';
import 'package:manager_page/project_work.dart';
import 'package:manager_page/teach_page.dart';
import 'package:manager_page/team_work_page.dart';
import 'package:manager_page/thinking_page_.dart';
import 'package:url_path/url.dart';
/**
 *
 * @ProjectName:    manager_page
 * @ClassName:      management_router
 * @Description:    dart类作用描述
 * @Author:         孙浩
 * @QQ:             243280864
 * @CreateDate:     2020/11/24 12:24 AM
 */

class ManagementRouter extends BaseRouter {
  @override
  initRouterPage(FluroRouter router) {
    router.define(StaticRoutePath.managementPath,
        handler: Handler(
            handlerFunc: (c, params) =>
                ManagementPage(getStringExtra("imgPath", params))));
    router.define(StaticRoutePath.team,
        handler: Handler(
            handlerFunc: (c, params) =>
                TeamWorkPage(getStringExtra("imgPath", params))));
    router.define(StaticRoutePath.teach,
        handler: Handler(
            handlerFunc: (c, params) =>
                TeachPage(getStringExtra("imgPath", params))));
    router.define(StaticRoutePath.progress_manage,
        handler: Handler(
            handlerFunc: (c, params) =>
                ProgressPage(getStringExtra("imgPath", params))));
    router.define(StaticRoutePath.meeting,
        handler: Handler(
            handlerFunc: (c, params) =>
                MeetingPage(getStringExtra("imgPath", params))));
    router.define(StaticRoutePath.project_work,
        handler: Handler(
            handlerFunc: (c, params) =>
                ProjectWorkPage(getStringExtra("imgPath", params))));
    router.define(StaticRoutePath.thinking,
        handler: Handler(
            handlerFunc: (c, params) =>
                ThinkingPage(getStringExtra("imgPath", params))));
  }
}
